package com.liuguang.testassert.controller;

import com.liuguang.testassert.common.Result;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebServlet;

/**
 * @ClassName: TestMVCController
 * @Description：
 * @Author: wanghr
 * Date: 2:10 PM 2020/6/9
 * Version: 1.0
 */
@RestController
@RequestMapping("/mvc")
public class TestMVCController {

    @RequestMapping("/testmvc")
    public Result<String> testmvc() {
        Result<String> result = new Result<>();

//        ServletContextListener
//        ContextLoaderListener
//        ApplicationContext
//        DispatcherServlet
//        AbstractApplicationContext




        result.setMsg("我我我我我我哦我喔哦哦");

        return result;
    }
}
